From efd42641733b7a172f8081d6da9f9329c00f0e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 1 Jan 2018 13:13:25 +0000 Subject: otverio2015: reorder functions to match otultraeasy. --- glucometerutils/drivers/otverio2015.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/glucometerutils/drivers/otverio2015.py b/glucometerutils/drivers/otverio2015.py index 8d87409..2c5b52f 100644 --- a/glucometerutils/drivers/otverio2015.py +++ b/glucometerutils/drivers/otverio2015.py @@ -245,17 +245,17 @@ class Device(object): self._send_request( 3, _MEMORY_ERASE_REQUEST, None, _COMMAND_SUCCESS) - def _get_reading_count(self): - response = self._send_request( - 3, _READ_RECORD_COUNT_REQUEST, None, _READ_RECORD_COUNT_RESPONSE) - return response.count - def get_glucose_unit(self): response = self._send_request( 4, _READ_PARAMETER_REQUEST, {'selector': 'unit'}, _READ_UNIT_RESPONSE) return response.unit + def _get_reading_count(self): + response = self._send_request( + 3, _READ_RECORD_COUNT_REQUEST, None, _READ_RECORD_COUNT_RESPONSE) + return response.count + def _get_reading(self, record_id): response = self._send_request( 3, _READ_RECORD_REQUEST, {'record_id': record_id}, -- cgit v1.2.3